<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>编辑模块信息</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<script src="../../../script/base-import.js"></script>
	<script src="js/editModule.js"></script>
	<script src="js/editModuleVar.js"></script>
	<style type="">
		.btnStyle {
			margin: 0px;
			padding: 0px;
		}
		.btnStyle div {
			float: left;
			line-height: 20px;
		}
		.btnStyle div input {
			float: left;
			height: 16px;
			font-size: 10px;
		}
		.btnStyle div a {
			float: left;
			text-decoration: none;
			line-height: 20px;
		}
	</style>
</head>
<body>
<div class="page-toolbar">
	<div class="page-toolbar-right">
		<a class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" onclick="saveData()">确定</a> 
		<a class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)" onclick="closeWin()">取消</a>
	</div>
</div>
<form id="addForm">
	<input type="hidden" id="id"/>
	<div class="layout-edit-table">
		<div class="layout-edit-cell">
			<div class="layout-edit-title">编号：</div>
			<div class="layout-edit-input"><input id="code" style="width: 120px;" rule="isNotNull;"/></div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">标题:</div>
			<div class="layout-edit-input"><input id="name" style="width: 120px;" rule="isNotNull;"/></div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">页面排版:</div>
			<div class="layout-edit-input">
				<select id="layout" style="width: 120px;">
					<option value="center">页面中间</option>
					<option value="west">页面左边</option>
					<option value="north">页面上边</option>
					<option value="east">页面右边</option>
					<option value="south">页面下边</option>
					<option value="panel">选项卡</option>
				</select>
			</div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">类型:</div>
			<div class="layout-edit-input">
				<select id="type" style="width: 120px;" onchange="changeType(this.value);">
					<option value="list">查询列表</option>
					<option value="edit">编辑页面</option>
					<option value="tree">树形结构</option>
					<option value="module">模板类型</option>
					<option value="tabs">选项卡</option>
				</select>
			</div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">宽度:</div>
			<div class="layout-edit-input"><input id="width" style="width: 120px;" rule="isNumber;"/></div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">高度:</div>
			<div class="layout-edit-input"><input id="height" style="width: 120px;" rule="isNumber;"/></div>
		</div>
		<div class="layout-edit-cell" id="paginationDiv">
			<div class="layout-edit-title">分页显示:</div>
			<div class="layout-edit-input">
				<select id="pagination" style="width: 120px;">
					<option value="0">否</option>
					<option value="1">是</option>
				</select>
			</div>
		</div>
		<div class="layout-edit-cell" id="pageSizeDiv">
			<div class="layout-edit-title" id="pageSizeTitle">分页表格数量:</div>
			<div class="layout-edit-input"><input id="pageSize" style="width: 120px;" value="20" rule="isNumber;"/></div>
		</div>
		<div class="layout-edit-cell" id="hideQueryDiv">
			<div class="layout-edit-title">隐藏查询条件:</div>
			<div class="layout-edit-input">
				<select id="hideQuery" style="width: 120px;">
					<option value="0">否</option>
					<option value="1">是</option>
				</select>
			</div>
		</div>
		<div class="layout-edit-cell" style="width: 440px;">
			<div class="layout-edit-title">归属模块:</div>
			<div class="layout-edit-input">
				<ul id="parentId" style="width: 320px;"></ul>
			</div>
		</div>
		<div class="layout-edit-cell" id="btnPanel">
			<div class="layout-edit-title">按钮:</div>
			<div class="layout-edit-input" style="width: 340px">
				<div class="btnStyle">
					<div id="pageFunsDiv"></div>
					<div id="addPageFun">
						<a class="easyui-linkbutton" icon="icon-add" href="javascript: void(0)" onclick="openButWin(1)"></a>
					</div>
				</div>
			</div>
		</div>
		<div class="layout-edit-cell" id="operPanel">
			<div class="layout-edit-title">操作:</div>
			<div class="layout-edit-input" style="width: 340px">
				<div class="btnStyle">
					<div id="pageOpersDiv"></div>
					<div id="addPageOper">
						<a class="easyui-linkbutton" icon="icon-add" href="javascript:void(0)" onclick="openButWin(2)"></a>
					</div>
				</div>
			</div>
		</div>
		<div class="layout-edit-cell" id="clickPanel">
			<div class="layout-edit-title">点击:</div>
			<div class="layout-edit-input" style="width: 340px">
				<div class="btnStyle">
					<div>
						<div>
							<input name="pageClick" type="checkbox" value="click" title="单击"/>
							<a href="javascript: void(0)" onclick="showClick('click');return false;">单击&nbsp;</a>
						</div>
						<div>
							<input name="pageClick" type="checkbox" value="dblClick" title="双击"/>
							<a href="javascript: void(0)" onclick="showClick('dblClick');return false;">双击&nbsp;</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layout-edit-cell">
			<div class="layout-edit-title">备注:</div>
			<div class="layout-edit-input" style="width: 340px">
				<textarea id="remark" rows="2"></textarea>
			</div>
		</div>
	</div>
</form>

<!--编辑按钮事件弹出窗口-->
<div id="buttonWindow" class="easyui-window"
	data-options="shadow:true,modal:true,closed:true,minimizable:false,maximizable:false,collapsible:false,title:'编辑按钮'" 
	style="width:480px;height:350px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div region="north" border="false" style="height: 35px;overflow:hidden;">
			<div class="page-toolbar">
				<div class="page-toolbar-right">
					<a class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0)" onclick="addButton()">确定</a> 
					<a class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0)" onclick="closeButWin()">取消</a>
				</div>
			</div>
		</div>
		<div region="center" border="false" style="padding:10px;background:#fff;overflow:hidden;">
			<table cellpadding="0" class="edit_table" >
				<tr>
					<td align="right">按钮：</td>
					<td><input id="btnName"/></td>
				</tr>
				<tr>
					<td>事件：</td>
					<td><textarea id="btnContext" rows="7" style="width: 350px"></textarea></td>
				</tr>
				<tr id="save_success_fun">
					<td>回调函数：</td>
					<td><textarea id="successFun" rows="4" style="width: 350px"></textarea></td>
				</tr>
			</table>
		</div>
	</div>
</div>
</body>
</html>